rootfile=$1
logfile=$2

echo "************** varifying caliobj !!  **************"

~/.task/CommondEdx/printCalibObj $rootfile > printobj.log

bb=$(echo  Gain T0 Vd PHQ0 PHQ1 PHQ2 PHQ3 PHQ4 PHQ5 PHQ6 PHQ7)

for jj in $bb
do
    echo =============================
    echo type $jj
    echo

    #grep outcalibobj$jj $logfile | sort -n -k 2 > genobj$jj.log
    grep outcalibobj$jj printobj.log | sort -n -k 2 > print$jj.log
    #wc genobj$jj.log print$jj.log
    wc print$jj.log
    #diff genobj$jj.log print$jj.log 
done

